cmake_minimum_required(VERSION 3.10)
project({PROJECT_NAME})
# 设置 C++ 版本
set(CMAKE_CXX_STANDARD 11)
#添加宏定义
add_definitions(-DCPPHTTPLIB_OPENSSL_SUPPORT)
# 指定头文件搜索路径为项目目录下的include文件夹
include_directories(${PROJECT_SOURCE_DIR}/include)
# 添加源文件
add_executable(client client.cpp)
add_executable(server server.cpp)
# 链接库
target_link_libraries(client /home/lyf/pro/pro25_5_5libhv/lib/libhv.so)
target_link_libraries(server /home/lyf/pro/pro25_5_5libhv/lib/libhv.so)